package com.iOS.service;

import com.iOS.dto.FileInfoExecution;
import com.iOS.entity.FileInfo;
import org.springframework.stereotype.Service;

import java.io.InputStream;

@Service
public interface IFileInfoService {
    /**
     * @Author:WenTao
     * @Description:上传文件资源
     * @Date:9:55 2018/10/10
     */
    FileInfoExecution add(String token, String fileTitle, InputStream fileInputStream, String filename);

    /**
     * @Author:WenTao
     * @Description:删除文件资源
     * @Date:9:56 2018/10/10
     */
    FileInfoExecution delete(String token, int id);

    /**
     * @Author:WenTao
     * @Description:单查
     * @Date:9:57 2018/10/10
     */
    FileInfoExecution selectbyId(int id);

    /**
     * @Author:WenTao
     * @Description:根据用户查询
     * @Date:9:57 2018/10/10
     */
    FileInfoExecution selectByUser(int userId);

    /**
     * @Author:WenTao
     * @Description:
     * @Date:9:58 2018/10/10
     */
    FileInfoExecution selectAll();
}
